﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserRoleSet.aspx.cs"
    Inherits="Console_System_UserRights_UserRoleSet" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script language="javascript" type="text/javascript">
        $(function () {
            // box事件
            $("[name = box]:checkbox").bind("click", function () {
                var result = new Array();
                $("[name = box]:checkbox").each(function () {
                    if ($(this).is(":checked")) {
                        result.push($(this).attr("value"));
                    }
                });
                var text = $("input[name='uroleidstr']");
                text.val(result.join(","));
            })
        });
    </script>
</head>
<body>
    <h2 class="contentTitle">
        用户授权</h2>
    <div class="pageContent">
        <form id="form1" method="post" action="Console/System/UserRights/UserRights.ashx" class="pageForm required-validate"
        onsubmit="return validateCallback(this,navTabAjaxDone)">
        <input type="hidden" name="title" value="UserRoleSet" />
        <input type="hidden" name="uid" value="<%=UserId %>" />
         <input type="hidden" name="roleid" value="<%=RoleId %>" />
        <input type="hidden" name="uroleidstr" value="1" />
        <div class="pageFormContent" layouth="97">
            <p>
                <label>
                    用户名：</label>
                <input type="text"  name="UserName"  size="30" maxlength="50" value="<%=UserName %>" class="required"/>
            </p>
              <p>
                <label>
                    雇员名：</label>
                <input type="text"  name="EmployeeName"  size="30" maxlength="50" value="<%=EmployeeName %>" />
            </p>
            <p>
                <label>
                    角色名称：</label>
                <%=GetCheckBox() %>
            </p>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">
                                提交</button></div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">
                                取消</button></div>
                    </div>
                </li>
            </ul>
        </div>
        </form>
    </div>
</body>
</html>
